package chapter15;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/2/23 9:03
 */
public class HelloThread extends Thread {
    public static void main(String[] args) {
        HelloThread thread = new HelloThread();
        thread.start();
        thread.run();
    }

    @Override
    public void run() {
        System.out.println("current thread name:" + Thread.currentThread().getName());
        System.out.println("hello thread");
    }
}
